package com.cms.service.impl;

import com.cms.dao.entity.LogEntity;
import com.cms.dao.mapper.LogMapper;
import com.cms.service.api.ILogService;
import com.cms.service.converter.LogConverter;
import com.cms.service.dto.LogDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName LogServiceImpl
 */
@Service
public class LogServiceImpl implements ILogService {

    @Autowired
    LogMapper logMapper;
    @Override
    public void save(LogDto dto) {
        logMapper.save(LogConverter.CONVERTER.EntitytoDto(dto));
    }

    @Override
    public LogDto getById(Integer id) {
        return null;
    }
}
